package cn.tedu.cs.baking.dao;

import cn.tedu.cs.baking.pojo.po.Picture;
import cn.tedu.cs.baking.pojo.vo.PictureVO;

import java.util.List;

public interface PictureMapper {
    int insert(Picture record);

    int insertSelective(Picture record);

    Picture selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Picture record);

    int updateByPrimaryKey(Picture record);

    List<PictureVO> getList(int index, Integer pageSize);

    int deleteById(Long pictureId);

    int countByAlbumId(Long albumId);

    String selectUrlById(Long pictureId);

    List<PictureVO> getListByAlbumId(Long albumId);
}